#pragma once
#include "Configuration.h"
#include "SplitTool.h"
#include "simhash/cppjieba/Jieba.hpp"

//CppJieba分词工具类
class SplitToolCppJieba: public SplitTool{
public:
    SplitToolCppJieba(Configuration *config);
    virtual ~SplitToolCppJieba() override; //虚析构函数
    virtual vector<string> cut(const string &sentence) override; //分词函数
private:
    Configuration *_config; //配置文件类
    cppjieba::Jieba _jieba; //cppjieba分词对象，该对象的初始化很费事，最好只初始化一次
};
